package com.Yukiha.gachamod.gachaMenu.client;

import com.Yukiha.gachamod.gachaMenu.ModMenuTypes;
import com.Yukiha.gachamod.gachaMenu.client.gui.GachaBookScreen;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.gui.screens.MenuScreens;
import net.minecraftforge.client.event.RegisterKeyMappingsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import org.lwjgl.glfw.GLFW;

@Mod.EventBusSubscriber(modid = "gachamod", value = net.minecraftforge.api.distmarker.Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModClient {

//    // 客户端按键
//    public static final KeyMapping OPEN_BOOK_KEY = new KeyMapping(
//            "key.gachamod.open_gacha_book",
//            GLFW.GLFW_KEY_B,
//            "key.categories.gachamod"
//    );
//
    // 注册 GUI、按键等
//    @SubscribeEvent
//    public static void onClientSetup(FMLClientSetupEvent event) {
//        event.enqueueWork(() -> {
//            MenuScreens.register(ModMenuTypes.GACHA_BOOK_MENU.get(), GachaBookScreen::new);
//        });
//    }
//
//    @SubscribeEvent
//    //public static void onRegisterKeyMappings(RegisterKeyMappingsEvent event) {
//        //event.register(OPEN_BOOK_KEY);
//    }
}
